package cn.edu.hbsi.dao;

import cn.edu.hbsi.domain.Customer;

import java.util.List;
import java.util.Map;

public interface CustomerDao
{
    //根据姓名和职业查询
    public List<Customer> selectCustomersByUsernameAndJobs(Customer customer);

    //根据姓名或职业查询
    public List<Customer> selectCustomersByUsernameOrJobs(Customer customer);

    //更新
    public int updateCustomerBySet(Customer customer);

    //一字段多条件查询
    public List<Customer> selectCustomerByArray(int[] array);

    //根据List的数据进行查询
    public List<Customer> selectByList(List<Integer> list);

    //根据Map的数据进行多参数查询
    public List<Customer> selectByMap(Map<String,Object> map);
}
